/*
 * Copyright 2017 Baiyyy
 * @(#)TSHumitureMapper.java
 */

package com.byyy.ccts.modules.ysjl.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.byyy.ccts.modules.ysjl.entity.YsjlUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by DELL on 2018-5-7.
 */
public interface YsjlUserMapper extends BaseMapper<YsjlUser> {

    /** 自定义分页 */
    List<YsjlUser> queryUserListPage(Page<YsjlUser> page, @Param("ew") Wrapper<YsjlUser> wrapper);

    /** 根据openid查询用户 */
    YsjlUser queryUserByOpenid(String openid);

    /** 根据NAME查询用户(仅限admin) */
    YsjlUser queryByName(String name);

    /** 查询当天到期得会员 */
    List<YsjlUser> queryVipOverUser();

}